/*
 * 商城管理模块
 */


export function getBannerList() {
  const bannerList = {
    "count": 2,
    "list": [{
      "id": 2,
      "courseId": 47,
      "bannerName": "1",
      "status": 2,
      "img": "http://mego-haina.oss-cn-hangzhou.aliyuncs.com/platform/image/20201122/201122112920620.jpg",
      "bannerType": null,
      "linkUrl": null,
      "createTime": "2020-11-04 10:40:00",
      "creator": 1,
      "isDelete": 0,
      "courseName": "fwef"
    }, {
      "id": 1,
      "courseId": 1,
      "bannerName": "推广课程",
      "status": 1,
      "img": "http://mego-haina.oss-cn-hangzhou.aliyuncs.com/platform/image/20201122/201122112920620.jpg",
      "bannerType": null,
      "linkUrl": "",
      "createTime": "2020-11-04 10:30:09",
      "creator": 1,
      "isDelete": 0,
      "courseName": "课程1"
    }]
  }
  return {
    url: 'mall/getBannerList',
    type: 'post',
    data: {
      "code": 200,
      "msg": null,
      data: bannerList
    }
  }
}

export function getBanner() {
  const bannerList = {
    "count": 2,
    "list": {
      "id": 2,
      "courseId": 47,
      "bannerName": "1",
      "status": 2,
      "img": "http://mego-haina.oss-cn-hangzhou.aliyuncs.com/platform/image/20201122/201122112920620.jpg",
      "bannerType": null,
      "linkUrl": null,
      "createTime": "2020-11-04 10:40:00",
      "creator": 1,
      "isDelete": 0,
      "courseName": "fwef"
    }
  }
  return {
    url: 'mall/getBanner',
    type: 'post',
    data: {
      "code": 200,
      "msg": null,
      data: bannerList
    }
  }
}

export function getChannelList() {
  const data = {
    "count": 40,
    "list": [{
      "id": 6,
      "channelName": "333",
      "sortIndex": 1.0,
      "createTime": "2020-11-12 23:38:57",
      "creator": 1,
      "isDelete": 0,
      "courseCount": 11,
      "courseList": []
    }, {
      "id": 5,
      "channelName": "热门课程11",
      "sortIndex": 2.0,
      "createTime": "2020-11-08 19:57:39",
      "creator": 1,
      "isDelete": 0,
      "courseCount": 22,
      "courseList": []
    }, {
      "id": 7,
      "channelName": "李敏测试",
      "sortIndex": 3.0,
      "createTime": "2020-11-15 10:19:53",
      "creator": 1,
      "isDelete": 0,
      "courseCount": 3,
      "courseList": []
    }, {
      "id": 8,
      "channelName": "李敏测试1",
      "sortIndex": 4.0,
      "createTime": "2020-11-15 10:23:25",
      "creator": 1,
      "isDelete": 0,
      "courseCount": 0,
      "courseList": []
    }, {
      "id": 9,
      "channelName": "李敏测试1",
      "sortIndex": 5.0,
      "createTime": "2020-11-15 10:23:30",
      "creator": 1,
      "isDelete": 0,
      "courseCount": 0,
      "courseList": []
    }, {
      "id": 10,
      "channelName": "李敏测试1",
      "sortIndex": 6.0,
      "createTime": "2020-11-15 10:25:15",
      "creator": 1,
      "isDelete": 0,
      "courseCount": 0,
      "courseList": []
    }, {
      "id": 11,
      "channelName": "李敏测试1",
      "sortIndex": 7.0,
      "createTime": "2020-11-15 10:25:19",
      "creator": 1,
      "isDelete": 0,
      "courseCount": 0,
      "courseList": []
    }, {
      "id": 12,
      "channelName": "李敏测试1",
      "sortIndex": 8.0,
      "createTime": "2020-11-15 10:25:22",
      "creator": 1,
      "isDelete": 0,
      "courseCount": 0,
      "courseList": []
    }, {
      "id": 13,
      "channelName": "李敏测试1",
      "sortIndex": 10.0,
      "createTime": "2020-11-15 10:25:26",
      "creator": 1,
      "isDelete": 0,
      "courseCount": 0,
      "courseList": []
    }, {
      "id": 15,
      "channelName": "李敏测试1",
      "sortIndex": 10.0,
      "createTime": "2020-11-15 10:25:33",
      "creator": 1,
      "isDelete": 0,
      "courseCount": 26,
      "courseList": []
    }]
  }
  return {
    url: 'mall/getChannelList',
    type: 'post',
    data: {
      "code": 200,
      "msg": null,
      data: data
    }
  }
}

export function getChannelCourseList() {
  const data = [
    {
      "id": 54,
      "courseId": 37,
      "channelId": 6,
      "createTime": "2020-11-15 08:25:12",
      "creator": 1,
      "isDelete": 0,
      "face": "/upload/default/201106181325433.png",
      "courseName": "直播测试2",
      "courseCateName": "国际关系",
      "courseType": 4,
      "courseLabel": "直播大牛",
      "isRelease": 1,
      "courseCateId": 87,
      "parentCourseCateId": null,
      "parentCourseCateName": null
    }, {
      "id": 51,
      "courseId": 23,
      "channelId": 6,
      "createTime": "2020-11-13 11:08:41",
      "creator": 1,
      "isDelete": 0,
      "face": "/upload/default/201104153048370.jpg",
      "courseName": "pdf测试",
      "courseCateName": "意大利语",
      "courseType": 2,
      "courseLabel": "pdf测试",
      "isRelease": 1,
      "courseCateId": 74,
      "parentCourseCateId": null,
      "parentCourseCateName": null
    }, {
      "id": 50,
      "courseId": 31,
      "channelId": 6,
      "createTime": "2020-11-13 11:08:41",
      "creator": 1,
      "isDelete": 0,
      "face": "/upload/default/201105134444042.png",
      "courseName": "12",
      "courseCateName": "意大利语",
      "courseType": 4,
      "courseLabel": "大师傅,大风歌",
      "isRelease": 1,
      "courseCateId": 74,
      "parentCourseCateId": null,
      "parentCourseCateName": null
    }, {
      "id": 49,
      "courseId": 36,
      "channelId": 6,
      "createTime": "2020-11-13 11:08:41",
      "creator": 1,
      "isDelete": 0,
      "face": "/upload/default/201105204741745.jpg",
      "courseName": "你看没你看没看了",
      "courseCateName": "国际关系",
      "courseType": 2,
      "courseLabel": "类目开了",
      "isRelease": 1,
      "courseCateId": 87,
      "parentCourseCateId": null,
      "parentCourseCateName": null
    }, {
      "id": 48,
      "courseId": 37,
      "channelId": 6,
      "createTime": "2020-11-13 11:08:41",
      "creator": 1,
      "isDelete": 0,
      "face": "/upload/default/201106181325433.png",
      "courseName": "直播测试2",
      "courseCateName": "国际关系",
      "courseType": 4,
      "courseLabel": "直播大牛",
      "isRelease": 1,
      "courseCateId": 87,
      "parentCourseCateId": null,
      "parentCourseCateName": null
    }, {
      "id": 47,
      "courseId": 46,
      "channelId": 6,
      "createTime": "2020-11-13 11:08:41",
      "creator": 1,
      "isDelete": 0,
      "face": "/upload/default/201112001228948.jpg",
      "courseName": "论人的修养",
      "courseCateName": "国际关系",
      "courseType": 1,
      "courseLabel": "中国,美国,以色列",
      "isRelease": null,
      "courseCateId": 87,
      "parentCourseCateId": null,
      "parentCourseCateName": null
    }, {
      "id": 46,
      "courseId": 47,
      "channelId": 6,
      "createTime": "2020-11-13 11:08:41",
      "creator": 1,
      "isDelete": 0,
      "face": "/upload/default/201112133051276.jpeg",
      "courseName": "fwef",
      "courseCateName": "语文",
      "courseType": 1,
      "courseLabel": "wef",
      "isRelease": 1,
      "courseCateId": 69,
      "parentCourseCateId": null,
      "parentCourseCateName": null
    }, {
      "id": 45,
      "courseId": 48,
      "channelId": 6,
      "createTime": "2020-11-13 11:08:41",
      "creator": 1,
      "isDelete": 0,
      "face": "/upload/default/201112171009120.jpeg",
      "courseName": "shenme",
      "courseCateName": "分类四",
      "courseType": 4,
      "courseLabel": "wefwef",
      "isRelease": null,
      "courseCateId": 90,
      "parentCourseCateId": 88,
      "parentCourseCateName": "分类一"
    }, {
      "id": 44,
      "courseId": 46,
      "channelId": 6,
      "createTime": "2020-11-12 23:59:53",
      "creator": 1,
      "isDelete": 0,
      "face": "/upload/default/201112001228948.jpg",
      "courseName": "论人的修养",
      "courseCateName": "国际关系",
      "courseType": 1,
      "courseLabel": "中国,美国,以色列",
      "isRelease": null,
      "courseCateId": 87,
      "parentCourseCateId": null,
      "parentCourseCateName": null
    }, {
      "id": 43,
      "courseId": 47,
      "channelId": 6,
      "createTime": "2020-11-12 23:59:53",
      "creator": 1,
      "isDelete": 0,
      "face": "/upload/default/201112133051276.jpeg",
      "courseName": "fwef",
      "courseCateName": "语文",
      "courseType": 1,
      "courseLabel": "wef",
      "isRelease": 1,
      "courseCateId": 69,
      "parentCourseCateId": null,
      "parentCourseCateName": null
    }, {
      "id": 42,
      "courseId": 48,
      "channelId": 6,
      "createTime": "2020-11-12 23:59:53",
      "creator": 1,
      "isDelete": 0,
      "face": "/upload/default/201112171009120.jpeg",
      "courseName": "shenme",
      "courseCateName": "分类四",
      "courseType": 4,
      "courseLabel": "wefwef",
      "isRelease": null,
      "courseCateId": 90,
      "parentCourseCateId": 88,
      "parentCourseCateName": "分类一"
    }]
  return {
    url: 'mall/getChannelCourseList',
    type: 'post',
    data: {
      "code": 200,
      "msg": null,
      data: data
    }
  }
}

export function getHotStringList() {
  const data = {
    "count": 6,
    "list": [{"id": 30, "word": "人力资源", "createTime": "2020-11-27 23:43:01", "creator": 1, "isDelete": 0}, {
      "id": 29,
      "word": "沟通协作",
      "createTime": "2020-11-23 10:51:35",
      "creator": 1,
      "isDelete": 0
    }, {"id": 28, "word": "思维模式", "createTime": "2020-11-23 10:51:30", "creator": 1, "isDelete": 0}, {
      "id": 27,
      "word": "营销技能",
      "createTime": "2020-11-23 10:51:24",
      "creator": 1,
      "isDelete": 0
    }, {"id": 26, "word": "团队管理", "createTime": "2020-11-23 10:51:18", "creator": 1, "isDelete": 0}, {
      "id": 25,
      "word": "办公效率",
      "createTime": "2020-11-23 10:51:11",
      "creator": 1,
      "isDelete": 0
    }]
  }
  return {
    url: 'mall/getHotStringList',
    type: 'post',
    data: {
      "code": 200,
      "msg": null,
      data: data
    }
  }
}

export function saveHotString() {
  const returnData = {
    "code": 200,
    "msg": null,
    data: {id: 12}
  }
  return {
    url: 'mall/saveHotString',
    type: 'post',
    data: returnData
  }
}

export function getNoticeList() {
  const data = {
    "count": 4,
    "list": [{
      "id": 6,
      "title": "李敏测试公告",
      "content": "<blockquote>李敏测试公告</blockquote>",
      "status": 2,
      "createTime": "2020-11-15 10:43:43",
      "creator": 1,
      "isDelete": 0,
      "sendTime": "2020-11-15 10:44:20",
      "sendCount": 3,
      "readCount": 0
    }, {
      "id": 5,
      "title": "李敏测试公告",
      "content": "<h1>李敏测试公告</h1>",
      "status": 1,
      "createTime": "2020-11-15 10:43:27",
      "creator": 1,
      "isDelete": 0,
      "sendTime": null,
      "sendCount": 1,
      "readCount": 0
    }, {
      "id": 2,
      "title": "adsfsd",
      "content": "<p>asdfsdfsdf</p>",
      "status": 1,
      "createTime": "2020-11-13 01:06:08",
      "creator": 1,
      "isDelete": 0,
      "sendTime": null,
      "sendCount": 2,
      "readCount": 0
    }, {
      "id": 1,
      "title": "关于课程全部免费的通知333",
      "content": "<p><span style=\"color: rgb(102, 102, 102); font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;PingFang SC&quot;, Tahoma, Arial, sans-serif; font-size: 14px; text-align: right; background-color: rgb(255, 255, 255);\">内容</span><span style=\"color: rgb(102, 102, 102); font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;PingFang SC&quot;, Tahoma, Arial, sans-serif; font-size: 14px; text-align: right; background-color: rgb(255, 255, 255);\">内容</span><span style=\"color: rgb(102, 102, 102); font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;PingFang SC&quot;, Tahoma, Arial, sans-serif; font-size: 14px; text-align: right; background-color: rgb(255, 255, 255);\">内容</span><span style=\"color: rgb(102, 102, 102); font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;PingFang SC&quot;, Tahoma, Arial, sans-serif; font-size: 14px; text-align: right; background-color: rgb(255, 255, 255);\">内容</span><span style=\"color: rgb(102, 102, 102); font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;PingFang SC&quot;, Tahoma, Arial, sans-serif; font-size: 14px; text-align: right; background-color: rgb(255, 255, 255);\">内容333</span></p>",
      "status": 2,
      "createTime": "2020-10-26 12:46:25",
      "creator": 1,
      "isDelete": 0,
      "sendTime": "2020-11-13 01:12:18",
      "sendCount": 2,
      "readCount": 0
    }]
  }
  return {
    url: 'mall/getNoticeList',
    type: 'post',
    data: {
      "code": 200,
      "msg": null,
      data: data
    }
  }
}

export function getNotice() {
  const data = {
    "id": 6,
    "title": "李敏测试公告",
    "content": "<blockquote>李敏测试公告</blockquote>",
    "status": 2,
    "createTime": "2020-11-15 10:43:43",
    "creator": 1,
    "isDelete": 0,
    "sendTime": "2020-11-15 10:44:20",
    "sendCount": 3,
    "readCount": 0
  }
  return {
    url: 'mall/getNotice',
    type: 'post',
    data: {
      "code": 200,
      "msg": null,
      data: data
    }
  }
}

export function getNoticeCompanyList() {
  const data = [
    {
      "id": 27,
      "parentCompanyId": null,
      "proxyId": null,
      "isEnabled": 1,
      "cityId": 320500,
      "companyName": "苏州壹品信息技术有限公司",
      "logo": "/platform/image/20201115/201115134926920.png",
      "industry": 2,
      "employeeCount": 100,
      "telephone": "0512-88888888",
      "linkPhone": "17768089870",
      "email": "1285118892@qq.com",
      "shortName": "壹品",
      "websiteUrl": "yipin",
      "memo": "这是一个不错的公司！",
      "adminAccountId": 47,
      "storeType": null,
      "localInterface": null,
      "createTime": "2020-11-15 13:50:38",
      "creator": 1,
      "isDelete": 0,
      "accountName": "david",
      "password": "123456",
      "cou": 1,
      "realName": "徐魏魏",
      "accountCreateTime": "2020-11-15 13:50:38",
      "cityName": "苏州市",
      "provinceId": 320000,
      "provinceName": "江苏",
      "proxyName": null
    }, {
      "id": 23,
      "parentCompanyId": null,
      "proxyId": null,
      "isEnabled": 1,
      "cityId": 130200,
      "companyName": "1212",
      "logo": "/platform/image/20201114/201114184728761.jpg",
      "industry": 1,
      "employeeCount": 1212,
      "telephone": "1212",
      "linkPhone": "1212",
      "email": "1212",
      "shortName": "1212",
      "websiteUrl": "1212",
      "memo": "111",
      "adminAccountId": 41,
      "storeType": null,
      "localInterface": null,
      "createTime": "2020-11-14 18:47:45",
      "creator": 1,
      "isDelete": 0,
      "accountName": "dkdk",
      "password": "123",
      "cou": 1,
      "realName": "1212",
      "accountCreateTime": "2020-11-14 18:47:45",
      "cityName": "唐山市",
      "provinceId": 130000,
      "provinceName": "河北",
      "proxyName": null
    }, {
      "id": 5,
      "parentCompanyId": null,
      "proxyId": null,
      "isEnabled": 1,
      "cityId": 510800,
      "companyName": "测试企业",
      "logo": null,
      "industry": 1,
      "employeeCount": 1,
      "telephone": null,
      "linkPhone": "132132132132",
      "email": "321@qq.com",
      "shortName": null,
      "websiteUrl": "1",
      "memo": null,
      "adminAccountId": null,
      "storeType": null,
      "localInterface": "100",
      "createTime": "2020-10-31 21:48:03",
      "creator": 1,
      "isDelete": 0,
      "accountName": "ttest",
      "password": "123",
      "cou": 1,
      "realName": "张三",
      "accountCreateTime": "2020-10-31 21:48:03",
      "cityName": "广元市",
      "provinceId": 510000,
      "provinceName": "四川",
      "proxyName": null
    }, {
      "id": 1,
      "parentCompanyId": null,
      "proxyId": null,
      "isEnabled": 1,
      "cityId": 511100,
      "companyName": "测试",
      "logo": null,
      "industry": 1,
      "employeeCount": 1,
      "telephone": "3333",
      "linkPhone": "11555555555",
      "email": "2222222222@qq.com",
      "shortName": "海教",
      "websiteUrl": "http://education",
      "memo": "大师傅",
      "adminAccountId": null,
      "storeType": null,
      "localInterface": null,
      "createTime": "2020-10-31 20:19:50",
      "creator": 1,
      "isDelete": 0,
      "accountName": "test",
      "password": "123",
      "cou": 2,
      "realName": "王大力",
      "accountCreateTime": "2020-11-01 13:03:23",
      "cityName": "乐山市",
      "provinceId": 510000,
      "provinceName": "四川",
      "proxyName": null
    }]
  return {
    url: 'mall/getNoticeCompanyList',
    type: 'post',
    data: {
      "code": 200,
      "msg": null,
      data: data
    }
  }
}
